/*
 * The MIT License (MIT)
 *
 * Copyright (c) 2014-2016 abel533@gmail.com
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */

package com.example.springboot.common.entity;

/*import org.springframework.data.annotation.Transient;*/

import javax.persistence.Transient;
import java.util.HashMap;
import java.util.Map;

/**
 * 基础信息
 *
 * @author liuzh
 * @since 2016-01-31 21:42
 */
public class BaseEntity {


    @Transient
    private Integer page = 1;

    @Transient
    private Integer rows = 10;

    @Transient
    private Integer offset = 0;

    @Transient
    private Integer limit = 10;

//    @Transient
//    private String queryProvinceId;
//    @Transient
//    private String queryCityId;
//    @Transient
//    private String queryCountyId;

    //用来 存放其它查询条件，mapper使用<if test="paramMap.xxx!=null ">进行条件拼接
    @Transient
    private Map<String,Object> paramMap = new HashMap<String,Object>();

    @Transient
    public Map<String, Object> getParamMap() {
        return paramMap;
    }

    @Transient
    public void setParamMap(Map<String, Object> paramMap) {
        this.paramMap = paramMap;
    }


    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Integer getRows() {
        return rows;
    }

    public void setRows(Integer rows) {
        this.rows = rows;
    }

    public Integer getOffset() {
        return offset;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

//    public String getQueryProvinceId() {
//        return queryProvinceId;
//    }
//
//    public void setQueryProvinceId(String queryProvinceId) {
//        this.queryProvinceId = queryProvinceId;
//    }
//
//    public String getQueryCityId() {
//        return queryCityId;
//    }
//
//    public void setQueryCityId(String queryCityId) {
//        this.queryCityId = queryCityId;
//    }
//
//    public String getQueryCountyId() {
//        return queryCountyId;
//    }
//
//    public void setQueryCountyId(String queryCountyId) {
//        this.queryCountyId = queryCountyId;
//    }
}
